package lib.bone.access.module.dict.dao;

import lib.bone.access.module.dict.entity.NepuSubjectDict;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface NepuSubjectDictDAO extends JpaRepository<NepuSubjectDict,String> {

    Optional<NepuSubjectDict> findBySubjectTypeAndSubjectLevel(
            String subjectType,
            String subjectLevel
    );

    /**
     * 根据区间范围查询(包括边界)
     */
    Optional<NepuSubjectDict> findBySubjectTypeAndFundsFloorLessThanEqualAndFundsCeilingGreaterThanEqual(String subjectType,Double val1,Double val2);


}
